/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 *
 * @format
 * @flow
 * @lint-ignore-every XPLATJSCOPYRIGHT1
 */

import React, {Component} from 'react';
import {Platform, StyleSheet, Text, View} from 'react-native';

import { Provider } from 'react-redux';
import { create } from 'dva-core';

import AppNavigator from './src/AppNavigator';
import userModel from './src/models/user';


const app = create();

let models=[userModel,];
models.forEach(model => app.model(model));

app.start();
const store = app._store;


export default class App extends React.Component {
  render() {
    return (
        <Provider store={store}>
            <AppNavigator/>
        </Provider>
    );
  }
}
